asp 缺少";" 代码0错误

来源:百度知道 编辑:UC知道 时间:2024/05/21 13:32:45
<html>
<head>
<script language="vbscript">
<!--
dim a
a=0
while a<9999
a=a+1
document.write(a)
wend
-->
</script>

</head>

</html>

错误不在本页,
经测试,就你贴出的代码没有任何错误。

首先你要保证你这些代码都得是对的.在javascript语言里.语名代码一般每行后面都会加有;这个的
<html>
<head>
<script language="vbscript">
<!--
dim a
a=0;
while a<9999;
a=a+1 ;
document.write(a);
wend ;
-->
</script>

</head>

</html>

这样
<%
for i=1 to 9998
response.write i
response.write "<br>"
next
response.end
%>
或者把document改为response